import datetime

from apps.bookings import plc
from constance import config


def turnoff():
    result = plc.send_message(config.PLC_IP_ADDRESS, 10000, 'OFF', int(config.PLC_TOTAL))
    time_stamp = datetime.datetime.now()
    print(time_stamp.strftime('%Y.%m.%d-%H:%M:%S'))
    print(result)

